package com.example.test;

import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity {
	private native String decrypt(String str);  
	private native String encrypt(String str);  
	
	static{
		System.loadLibrary("say");
	}
	
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_main);    
        
       String str = new String(encrypt("撒发生地方水电费是规划法规及和田玉任天野瑞特让他体育界泰语是东方时代感的复合肥"));
       System.out.println("-encrypt------------------"+str);
       System.out.println("-decrypt------------------"+decrypt(str));
       
    }
}
